package com.czr.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 风景名胜表
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("czr_landscape")
@ApiModel(value="czr_landscape对象", description="风景名胜表")
public class CzrLandscape extends Model<CzrLandscape> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "广告图片")
    @TableField("image")
    private String image;

    @ApiModelProperty(value = "简介")
    @TableField("synopsis")
    private String synopsis;

    @ApiModelProperty(value = "摘要")
    @TableField("c_abstract")
    private String cAbstract;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
